package chexuan.game.service.io.stream;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;

public class PacketOutputStream extends DataOutputStream {

	private final ByteArrayOutputStream out;

	public PacketOutputStream(ByteArrayOutputStream out) {
		super(out);
		this.out = out;
	}

	public byte[] toByteArray() {
		return this.out.toByteArray();
	}
}
